<?php

namespace App\Http\Controllers\Home;

use App\Models\Follow;

class FollowController extends BaseController
{

    public function __construct(Follow $follow)
    {
        parent::__construct();
        $this->follow  = $follow;
    }

    public function getMyFollowList(){
         $res = $this->follow->getMyFollowList(request());
         return ajax_return($res);
    }

    public function getCancleFollow(){
        $res = $this->follow->getCancleFollow(request());
        return ajax_return($res);
    }

    // 添加關注
    public function postAddFollow(){
          $res = $this->follow->addFollow(request());
          return ajax_return($res);
    }


}
